<?php if ($this->pageCount > 1): ?>
    <?php $params = array('page' => null, 
                          'filtro' => $this->filtro,
                          'ordem' => $this->ordem)?>

    <div class="pagination text-center">
        <ul>
            <?php $params['page'] = (isset($this->previous)) ? $this->previous : null ?>
            <li class="<?php echo (isset($this->previous)) ? '' : 'disabled' ?>">
                <a href="<?php echo (isset($this->previous))? $this->url($params) : 'javascript:void(0)'; ?>">&laquo;</a>
            </li>
            
            
            <?php foreach ($this->pagesInRange as $page): ?>
                <?php $params['page'] = $page ?>
                <li class="<?php echo ($page == $this->current) ? 'disabled' : '' ?>">
                    <a href="<?php echo ($page != $this->current) ? $this->url($params) : 'javascript:void(0)'; ?>" target="_self"><?php echo $page; ?></a>
                </li>
            <?php endforeach ?>
            
                
            <?php $params['page'] = (isset($this->next)) ? $this->next : null ?>
            <li class="<?php echo (isset($this->next)) ? '' : 'disabled' ?>">
                <a href="<?php echo (isset($this->next)) ? $this->url($params) : 'javascript:void(0)'; ?>">&raquo;</a>
            </li>
        </ul>
    </div>
<?php endif; ?>